﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

/// <summary>
/// sysDelete 的摘要说明
/// </summary>
public class sysDelete
{
	public sysDelete()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
     SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["Connection"]);

     #region 删除登录日志
     public Boolean LoginInfoDel(string sqlstr)
    {
        bool flag = false;
        try
        {
            conn.Open();
            SqlCommand comm = new SqlCommand(sqlstr, conn);
            comm.ExecuteNonQuery();
            flag = true;
        }
        catch (Exception ex)
        {
            throw (ex);
        }
        finally
        {
            conn.Close();
        }
        return flag;
    }
     #endregion


}
